package com.example.pmanagesys.controller;
// 首页
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
@RequestMapping("/") //路径
public class indexController {

    //  首页 页面
    @GetMapping
    public ModelAndView home() {
        return new ModelAndView("index");
    }

}

